package ggze.GGZEServer.home.enums;

public enum  UserEnum {
    STATUS_START("0", "启用"),
    STATUS_BAND("1", "禁用");

    private String value;
    private String label;

    UserEnum(String label, String value) {
        this.label=label;
        this.value=value;
    }
    public static String getValues(String value) {
        UserEnum[] businessModeEnums = values();
        for (UserEnum businessModeEnum : businessModeEnums) {
            if (businessModeEnum.getValue().equals(value)) {
                return businessModeEnum.getLabel();
            }
        }
        return null;
    }

    public static String getLables(String value) {
        UserEnum[] businessModeEnums = values();
        for (UserEnum businessModeEnum : businessModeEnums) {
            if (businessModeEnum.getLabel().equals(value)) {
                return businessModeEnum.getValue();
            }
        }
        return null;
    }

    public String getValue(){
        return this.value;
    }

    public String getLabel(){
        return this.label;
    }
}
